export const dateFormat = (dateString:string)=>{
    const _date = new Date(dateString);

    // 格式化日期
    const formattedDate:string = _date.toLocaleString('en-US', {
        year: 'numeric',
        month: '2-digit',
        day: '2-digit',
        hour: '2-digit',
        minute: '2-digit',
        second: '2-digit',
        hour12: false // 使用 24 小时制
    });
    return formattedDate;
}

 